package com.funtester.seven.day2;

public class Demo2 {

    public static void main(String[] args) {
        Teacher t1 = new Teacher("t1", 20, "一中", false);
        Teacher t2 = new Teacher("t2", 20, "一中", false);
        Student s1 = new Student("s1", 20, "一中", t1, false);
        Student s2 = new Student("s2", 20, "一中", t1, false);
        People.printTotal();
        t1.sayHi();
        t2.sayHi();
        s1.sayHi();
        s2.sayHi();
        ToO.print("--------上课-----------");
        t2.state = true;
        s1.state = true;
        t1.state();
        t2.state();
        s1.state();
        s2.state();
        t2.ask();
        t2.ask(s2);
        s2.answer(t2);
        ToO.print("--------下课-----------");

        State s = new Student("s2", 20, "一中", t1, false);
        s.state();


    }

}
